package com.magold.game.factory;

import com.magold.io.XMLReader;
import com.magold.logic.SolarCell;
import com.magold.logic.ISpriteLogic;

public class SolarCellFactory extends BaseLogicFactory {

	public SolarCellFactory() {
		super(SolarCell.class.getSimpleName());
	}

	@Override
	protected ISpriteLogic createSafely(XMLReader pReader) {
		boolean isSolar = pReader.getBoolean("solar");
		return new SolarCell(isSolar);
	}

}
